﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Battle
{
    public class Bullet_PowerPoint : BulletBase
    {
        protected override void OnHitObj(ICanHitObj target)
        {
            
        }
        protected override void AfterHitObj(ICanHitObj target)
        {
            //nothing
        }
        public override bool CheckNeedDestory()
        {
            return false;
        }

        private void OnEnable()
        {
            if (!PowerGridMgr.Ins.listPoint.Contains(this))
                PowerGridMgr.Ins.listPoint.Add(this);
        }
        private void OnDisable()
        {
            if (PowerGridMgr.Ins.listPoint.Contains(this))
                PowerGridMgr.Ins.listPoint.Remove(this);
        }

    }
}
